package com.hzh.frame.widget.rxbus;

import com.google.gson.Gson;

/**
 * @author
 * @version 1.0
 * @date 2019/2/24
 */
public class CultureEvent {
    
    private String msg;
    private String tag;

    public CultureEvent(String msg) {
        this.msg = msg;
        this.tag = "mainLine";
    }

    public CultureEvent(String tag, String msg) {
        this.msg = msg;
        this.tag = tag;
    }

    public String getMsg() {
        return msg;
    }

    public CultureEvent setMsg(String msg) {
        this.msg = msg;
        return this;
    }

    public String getTag() {
        return tag;
    }

    public CultureEvent setTag(String tag) {
        this.tag = tag;
        return this;
    }
    
    public String toString(){
        return new Gson().toJson(this);
    }
}
